package com.design;

import com.design.remote.IRemote;

/**
 * 家电抽象类
 */
public abstract class ApplianceAbstract {

    protected IRemote remote;

    /**
     * 构造方法
     * @param remote 遥控类
     */
    public ApplianceAbstract(IRemote remote) {
        this.remote = remote;
    }

    /**
     * 工作
     */
    public abstract void work();
}
